import request from '@/utils/request'

// 查询特征模板库列表
export function listFeatureTemplate(query) {
  return request({
    url: '/vueflow/featureTemplate/list',
    method: 'get',
    params: query
  })
}

// get  /vueflow/featureTemplate/list/all   查询所有特征模板库  
export function listAllFeatureTemplate(query) {
  return request({
    url: '/vueflow/featureTemplate/list/all',
    method: 'get',
    params: query
  })
}

// 查询特征模板库详细
export function getFeatureTemplate(id) {
  return request({
    url: '/vueflow/featureTemplate/' + id,
    method: 'get'
  })
}

// 新增特征模板库
export function addFeatureTemplate(data) {
  return request({
    url: '/vueflow/featureTemplate',
    method: 'post',
    data: data
  })
}

// 修改特征模板库
export function updateFeatureTemplate(data) {
  return request({
    url: '/vueflow/featureTemplate',
    method: 'put',
    data: data
  })
}

// 删除特征模板库
export function delFeatureTemplate(id) {
  return request({
    url: '/vueflow/featureTemplate/' + id,
    method: 'delete'
  })
}
